package com.feige.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feige.pojo.GroupChatMsg;
import com.feige.pojo.vo.ChatMsgVo;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 群聊消息表 Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2021-05-10
 */
@Repository
public interface GroupChatMsgMapper extends BaseMapper<GroupChatMsg> {

    /**
     * 查询群消息
     * @param map
     * @return
     */
    List<ChatMsgVo> queryGroupMsg(HashMap<String, Object> map);

    /**
     * 查询群消息的条数
     * @param map
     * @return
     */
    int queryGroupMsgTotal(HashMap<String, Object> map);



}
